package com.joysuch.wwyt.dzhapi.bean;

import com.baomidou.mybatisplus.annotation.*;

import java.time.LocalDate;

import com.joysuch.wwyt.common.entity.UserDataEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 保存系统中所有产生的图片数据
 * </p>
 *
 * @author JamesZY
 * @since 2021-12-07
 */
@Data
//@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("wwyt_base_image_repository")
@ApiModel(value = "BaseImageRepository对象", description = "保存系统中所有产生的图片数据")
public class ApiBaseImageRepositoryBean {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "ID")
    @TableId(value = "ID", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "缩略图路径")
    @TableField("THUMBNAIL_PATH")
    private String thumbnailPath;

    @ApiModelProperty(value = "缩略图宽度")
    @TableField("THUMBNAIL_WIDTH")
    private Integer thumbnailWidth;

    @ApiModelProperty(value = "缩图图长度")
    @TableField("THUMBNAIL_LENGTH")
    private Integer thumbnailLength;

    @ApiModelProperty(value = "原图路径")
    @TableField("ORIGIN_PATH")
    private String originPath;

    @ApiModelProperty(value = "原图长度")
    @TableField("ORIGIN_LENGTH")
    private Integer originLength;

    @ApiModelProperty(value = "原图宽度")
    @TableField("ORIGIN_WIDTH")
    private Integer originWidth;

    @ApiModelProperty(value = "图题")
    @TableField("TITLE")
    private String title;

    @ApiModelProperty(value = "图片说明")
    @TableField("DESCRIPTION")
    private String description;

    @ApiModelProperty(value = "上传时间")
    @TableField("UPLOAD_TIME")
    private LocalDate uploadTime;

    @ApiModelProperty(value = "指纹")
    @TableField("FINGER_PRINT")
    private String fingerPrint;

    @ApiModelProperty(value = "不同系统同步唯一标识ID")
    private String uniqueId;

    @ApiModelProperty(value = "同步状态:0否 ,1是")
    private Boolean locateSync;

    /**
     * 组织机构代码
     */
    @TableField(value = "ORG_CODE", fill = FieldFill.INSERT_UPDATE)
    private String orgCode;

    /**
     * 租户
     */
    @TableField(value = "TENENT_ID", fill = FieldFill.INSERT_UPDATE)
    private Long tenentId;


    @TableLogic
    @TableField(value = "DELETE_FLAG", fill = FieldFill.INSERT)
    private String deleteFlag;
}
